import request from '@/utils/request';

// 查询apollo替换项配置明细列表
export function listApolloReplaceItemDetail(query) {
  return request({
    url: 'tool/apollo/apolloReplaceItemDetail/list',
    method: 'get',
    params: query,
  });
}

// 查询apollo替换项配置明细详细
export function getApolloReplaceItemDetail(apolloReplaceItemDetailId) {
  return request({
    url: 'tool/apollo/apolloReplaceItemDetail/' + apolloReplaceItemDetailId,
    method: 'get',
  });
}

// 新增apollo替换项配置明细
export function addApolloReplaceItemDetail(data) {
  return request({
    url: 'tool/apollo/apolloReplaceItemDetail',
    method: 'post',
    data: data,
  });
}

// 修改apollo替换项配置明细
export function updateApolloReplaceItemDetail(data) {
  return request({
    url: 'tool/apollo/apolloReplaceItemDetail',
    method: 'put',
    data: data,
  });
}

// 删除apollo替换项配置明细
export function delApolloReplaceItemDetail(apolloReplaceItemDetailId) {
  return request({
    url: 'tool/apollo/apolloReplaceItemDetail/' + apolloReplaceItemDetailId,
    method: 'delete',
  });
}
